module.exports = {
    devServer: {
        proxy: {
            '/reportData': {
                target: 'http://localhost:8084/',
                changeOrigin: false, //  target是域名的话，需要这个参数，
                secure: false, //  设置支持https协议的代理,
            },
            '/getmap': {
                target: 'http://localhost:8084/',
                changeOrigin: false,
                secure: false,
            },
            '/getmgetRecordScreenIdp': {
                target: 'http://localhost:8084/',
                changeOrigin: false,
                secure: false,
            },
        },
    },
    configureWebpack: {
        resolve: { extensions: ['.ts', '.tsx', '.js', '.json'] },
        module: {
            rules: [
                {
                    test: /\.ts?$/,
                    loader: 'ts-loader',
                    exclude: /node_modules/,
                },
            ],
        },
    },
};
